package com.yu.DAO;

import com.yu.POJO.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: LittleFisher
 * @Date: 2021/05/31/10:04
 * @Description:
 */
public interface TeacherDao {
    public int addTea(Teacher teacher);
    public int upTea(Teacher teacher);
    public int delTea(int id);
    public Teacher findTeacherById(int id);//改
    public List<Teacher> getAllTea();
    public Teacher findTeaByName(String name);
    public Teacher findTeaByName2(@Param("name")String name,@Param("id")int id);
    public List<Teacher> getAllTeaWithPage(@Param("start")int start, @Param("end")int end);
    public int upPass(@Param("id")int id,@Param("newp")String newp);
}
